#ifndef EXPLOSION_H_
#define EXPLOSION_H_


#include "../WidgetMovimiento.h"
#include "../WidgetSonido.h"
#include "../Event.h"
#include "../Timer.h"
#include "../../common/DTOExplosion.h"
#include <math.h>

#define PI 3.14159265

class Explosion : public WidgetMovimiento, WidgetSonido{
private:
	int maxDuration;
	float timeAlive;
	Timer timer;
public:
	Explosion(int posX, int posY, Widget *parent);
	Explosion(DTOExplosion* dtoExplosion, Widget *parent);

	virtual void resolve();

	virtual void handleColision(WidgetMovimiento* with);

};

#endif /* EXPLOSION_H_ */
